package hu.mapro.flang.gwt.domain.server.entities;

import hu.mapro.model.LongId;

import javax.persistence.FetchType;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;

import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;

@RooJpaEntity
@RooJavaBean
public class Exercise implements LongId {

	@ManyToOne(fetch=FetchType.LAZY)
	Chapter chapter;
	
	@ManyToOne(fetch=FetchType.LAZY)
	Page page;

	Integer number;

	String description;

	@Lob
	String data;
    
}
